package com.lsw.jgyf.model;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * author：JiaXing
 * e-mail：JiaXingGoo@gmail.com
 */
public class BaseModel<T> implements Serializable{

    private int status;
    private String message;
    private T data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return TextUtils.isEmpty(message) ? "" : message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
